package nc.ui.zb.custset;

import nc.itf.zb.pub.IVOTreeData2;
import nc.ui.zb.pub.LongTimeTask;
import nc.vo.pub.SuperVO;
import nc.vo.scm.pu.PuPubVO;
import nc.vo.zb.bidding.SmallBiddingVO;

public class CustSetBiddingRightTreeData implements IVOTreeData2 {

	public String getShowFieldName() {
		return "vbillno/cname";
	}
	
	private String wherePart = "";

	public SuperVO[] getTreeVO() {
		if(PuPubVO.getString_TrimZeroLenAsNull(wherePart)==null)
			return null;
		SuperVO[] vos = null;
		try {
			Class[] ParameterTypes = new Class[]{String.class,boolean.class};
			Object[] ParameterValues = new Object[]{wherePart,true};
			Object o = LongTimeTask.callRemoteService("pu","nc.bs.zb.custset.CustSetBiddingBO", "loadDatas", ParameterTypes, ParameterValues, 2);
			return o==null?null:(SmallBiddingVO[])o;
		} catch (Exception e) {
			e.printStackTrace();
			vos = null;
		}
		if(vos == null || vos.length ==0)
			return null;
		return vos;
	}
	public void setWherePart(String whereSql) {
		wherePart = whereSql;
	}

}
